﻿<phone:PhoneApplicationPage 
    x:Class="SaveFuel.Guide"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:lang="clr-namespace:SaveFuel"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <phone:PhoneApplicationPage.Resources>
        <lang:LocalizedStrings x:Key="LocalizedResources"/>
    </phone:PhoneApplicationPage.Resources>
    
    <!--LayoutRoot è la griglia radice in cui viene inserito tutto il contenuto della pagina-->
    <Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{Binding Source={StaticResource LocalizedResources}}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene il nome dell'applicazione e il titolo della pagina-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="{Binding Path=LocalizedResources.ApplicationTitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitleGuide" Text="{Binding Path=LocalizedResources.PageTitleGuide}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - inserire ulteriore contenuto qui-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer>
                <StackPanel>
                    <TextBlock x:Name="txtChapter1" Text="{Binding Path=LocalizedResources.txtChapter1}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter1Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter1Text}">
                    </TextBlock>

                    <TextBlock x:Name="txtChapter2" Text="{Binding Path=LocalizedResources.txtChapter2}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter2Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter2Text}">
                    </TextBlock>

                    <TextBlock x:Name="txtChapter3" Text="{Binding Path=LocalizedResources.txtChapter3}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter3Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter3Text}">
                    </TextBlock>

                    <TextBlock x:Name="txtChapter4" Text="{Binding Path=LocalizedResources.txtChapter4}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter4Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter4Text}">
                    </TextBlock>

                    <TextBlock x:Name="txtChapter5" Text="{Binding Path=LocalizedResources.txtChapter5}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter5Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter5Text}">
                    </TextBlock>

                    <TextBlock x:Name="txtChapter6" Text="{Binding Path=LocalizedResources.txtChapter6}" Style="{StaticResource PhoneTextAccentStyle}" Margin="0,0,0,10" />
                    <TextBlock x:Name="txtChapter6Text" TextWrapping="Wrap" Margin="0,0,0,10"
                       Text="{Binding Path=LocalizedResources.txtChapter6Text}">
                    </TextBlock>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>

    <!--Codice di esempio che illustra l'utilizzo di ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Pulsante 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Pulsante 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Voce di menu 1"/>
                <shell:ApplicationBarMenuItem Text="Voce di menu 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
